const cryto = require('crypto');

const md5password = (password) => {
    //password 为string类型
    const md5 = cryto.createHash('md5');

    const result = md5.update(password).digest('hex');

    return result;
}

module.exports = md5password;